package com.lightbook.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
    @TableId(type = IdType.AUTO)
    private Integer bookId;
//    书名
    private String bookName;

    private double bookPrice;
//    作者
    private String bookAuthor;
//    销量
    private Integer bookSales;
//    库存
    private Integer bookStock;
//    图片地址
    private String bookImg;

//    逻辑删除
    @TableLogic
    private Integer isDeleted;}